Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose cache as a map of filtered seed #775

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

realdavidvega
Copy link
Contributor

This PR

  • Creates a getCache function in CachedTool, which inside an atomic operation removes the expired entries for the instance seed, modifies the state of the map and returns a map containing only the not expired entries for the instance seed.
  • Refactors cache function to use equivalent indexing instead of calling.

@realdavidvega realdavidvega self-assigned this Aug 14, 2024
Copy link
Contributor

@javipacheco javipacheco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@realdavidvega realdavidvega merged commit 8f36c04 into main Aug 14, 2024
6 checks passed
@realdavidvega realdavidvega deleted the feature/get-cache branch August 14, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants